package com.niiwoo.activity.stage.enums.activity;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum NoviceTaskPrizeEnum {
    NOVICE_REGISTERED((byte)1,"novice_task_activity","NTA_001","888元投资返现红包","新手注册"),
    UNDERSTANDING_NIIIWOO((byte)2,"novice_task_activity","NTA_002","30积分","一分钟了解你我金融"),
    OPEN_DEPOSITORY((byte)3,"novice_task_activity","NTA_003","100积分","开通投资存管"),
    FRIST_RISK((byte)4,"novice_task_activity","NTA_004","抽奖卡x2","首次完成风险评测"),
    FRIST_RECHARGE((byte)5,"novice_task_activity","NTA_005","5元提现红包","首次充值"),
    FRIST_INVEST((byte)6,"novice_task_activity","NTA_006","18元投资返现红包","首次投资"),
    FRIST_IMAGE((byte)7,"novice_task_activity","NTA_007","20积分","首次设置头像"),
    FRIST_NICENAME((byte)8,"novice_task_activity","NTA_008","20积分","首次设置昵称"),
    FRIST_BIND_WECHAT((byte)9,"novice_task_activity","NTA_009","30积分","首次绑定微信公众号"),
    OPEN_AUTO_INVEST((byte)10,"novice_task_activity","NTA_010","30积分","开启自动投资"),
    FRIST_SIGN_IN((byte)11,"novice_task_activity","NTA_011","18积分","首次签到"),
    FRIST_EXCHANGE_PRIZE((byte)12,"novice_task_activity","NTA_012","20积分","首次积分商城兑换礼品"),
    FRIST_INVITE_FRIEND_REGISTERED((byte)13,"novice_task_activity","NTA_013","80积分","首次邀请好友注册");

    Byte code;
    String activityCode;
    String goodsCode;
    String goodsName;
    String taskTitle;

    public static NoviceTaskPrizeEnum getNoviceTask(Byte code){
        for (NoviceTaskPrizeEnum noviceTaskPrizeEnum : NoviceTaskPrizeEnum.values()) {
            if(code == noviceTaskPrizeEnum.code){
                return noviceTaskPrizeEnum;
            }
        }
        return null;
    }
}
